<html>
<head><meta charset="utf-8"><title>rustup rust-analyzer · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustup.20rust-analyzer.html">rustup rust-analyzer</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="218043999"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustup%20rust-analyzer/near/218043999" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustup.20rust-analyzer.html#218043999">(Nov 26 2020 at 23:02)</a>:</h4>
<p>How can I install rust-analyzer via rustup? I tried <code>rustup component add rust-analyzer-preview</code>, but that didn't work, so I tried <code>rustup +nightly component add rust-analyzer-preview</code>, which <em>did</em> work, but then when I run <code>rust-analyzer-mac</code>:</p>
<div class="codehilite" data-code-language="Bash Session"><pre><span></span><code><span class="gp">$</span> rust-analyzer-mac
<span class="go">fish: 'rust-analyzer-mac' terminated by signal SIGKILL (Forced quit)</span>
</code></pre></div>
<p>Also, the official Rust plugin says it works with rust-analyzer, but rust-analyzer's manual says:</p>
<blockquote>
<p>Note that the plugin may cause conflicts with the official Rust plugin. It is recommended to disable the Rust plugin when using the rust-analyzer extension.</p>
</blockquote>
<p>What should I do?</p>
<p>cc <span class="user-mention" data-user-id="133169">@matklad</span></p>



<a name="218044428"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustup%20rust-analyzer/near/218044428" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lukas Wirth <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustup.20rust-analyzer.html#218044428">(Nov 26 2020 at 23:12)</a>:</h4>
<p>Basically you only want to have either of the two extensions enabled as they may interfere with each other if run together.</p>



<a name="218044431"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustup%20rust-analyzer/near/218044431" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lukas Wirth <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustup.20rust-analyzer.html#218044431">(Nov 26 2020 at 23:12)</a>:</h4>
<p>what the official plugin means with that it works with rust-analyzer is that it can run with rust-analyzers language server</p>



<a name="218066149"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustup%20rust-analyzer/near/218066149" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustup.20rust-analyzer.html#218066149">(Nov 27 2020 at 08:23)</a>:</h4>
<p>currently, you should use the rust-analyzer extension. The RA support in the official extension is incomplete. You also don't need to install RA through rustup then.</p>



<a name="218095189"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustup%20rust-analyzer/near/218095189" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustup.20rust-analyzer.html#218095189">(Nov 27 2020 at 14:01)</a>:</h4>
<p>Maybe someone should update the RLS documentation? I've seen a lot of people confused by this</p>



<a name="218098324"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustup%20rust-analyzer/near/218098324" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Þórhallur Sverrisson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustup.20rust-analyzer.html#218098324">(Nov 27 2020 at 14:35)</a>:</h4>
<p>Warn on possible data loss could maybe be added as a clippy, not sure if it is already.</p>



<a name="218101501"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustup%20rust-analyzer/near/218101501" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustup.20rust-analyzer.html#218101501">(Nov 27 2020 at 15:08)</a>:</h4>
<p><span class="user-mention" data-user-id="367150">@Þórhallur Sverrisson</span> I think you meant to comment on the <code>as</code> cast thread</p>



<a name="218114761"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustup%20rust-analyzer/near/218114761" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Richard Gomes <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustup.20rust-analyzer.html#218114761">(Nov 27 2020 at 17:32)</a>:</h4>
<p>Hi. It is only me or rustup is not creating $HOME/.cargo/env?</p>
<div class="codehilite" data-code-language="Bash"><pre><span></span><code>$ curl https://sh.rustup.rs -sSf <span class="p">|</span> sh -s -- -y
</code></pre></div>



<a name="218116860"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustup%20rust-analyzer/near/218116860" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustup.20rust-analyzer.html#218116860">(Nov 27 2020 at 17:59)</a>:</h4>
<p><span class="user-mention" data-user-id="367851">@Richard Gomes</span> I would ask in the #rustup channel on discord</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>